<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../taglibs.jsp" %>

<script type="text/javascript">
	function inStock(orderDetailId){
		var flag = "";
		var productId = $("#productId").val();
		var inNum = $("#inNum").val();
		var storeId = $("#storeId").val();
		$.ajax({
			url:"${path}/store_inStock",
			type:"post",
			dataType:"text",
			async:false,//设置ajax同步
			data:{
				orderDetailId:orderDetailId,
				productId:productId,
				inStockNum:inNum,
				storeId:storeId
			},
			success:function(responseText){
				flag = responseText;
			}
		});
		return flag;
	}
</script>
<div>
	
	<input id="surplus" hidden="hidden" value="<s:property value="surplus"/>">
	<input id="productId" hidden="hidden" value="<s:property value="productId"/>">
	<table>
		<tr>
			<td>选择仓库</td>
			<td><s:select id="storeId" cssStyle="width:200px" cssClass="goodsType" list="#slist" 
					name=""  listKey="storeId" listValue="name"></s:select></td>
		</tr>
		<tr>
			<td>入库数量</td>
			<td><input type="text" id="inNum" style="width: 200px;" name="inNum"></td>
		</tr>
	</table>
	
		<br>
	
</div>
